########################### Ultimate image ############################
FROM docker-hub.supor.com/infra/redhat-ubi:8.5-full

##-> image's description & author
MAINTAINER jinquan jinquan7@foxmail.com
LABEL Description="Echo API service(Golang Project Name), Routine configuration file is /app/config.yaml "

##-> copy executable objects to target image
COPY ./appdb /app/appdb
COPY ./config.yaml /app/config.yaml

##-> copy app's other files to target image
COPY ./cicd/version /app/

COPY ./cicd/entrypoint.sh /usr/sbin/entrypoint.sh
RUN chmod +x /usr/sbin/entrypoint.sh

EXPOSE 22
EXPOSE 1323

#VOLUME [ "/app/log" ]

ENTRYPOINT ["/usr/sbin/entrypoint.sh"]
